//package com.itjisu.hongbao;
//
//import android.content.Intent;
//import android.os.Bundle;
//import android.provider.Settings;
//import android.support.v7.app.AppCompatActivity;
//import android.view.Window;
//
//public class MainActivity extends AppCompatActivity {
//    ServiceDialog dialog=null;
//    private static final Intent sSettingsIntent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        requestWindowFeature(Window.FEATURE_NO_TITLE);
//        setContentView(R.layout.activity_main);
//    }
//
//    /**
//     * 是否开启辅助服务
//     */
//    private void showEnableServiceHintDialog(){
//        dialog=new ServiceDialog(MainActivity.this);
//        dialog.setListener(new ServiceDialog.ServiceListener() {
//            @Override
//            public void startEableService() {
//                startActivityForResult(sSettingsIntent, 0x123);
//            }
//        });
//    }
//}
